﻿using System;
/*
    Write an expression that extracts from given integer n the value of given bit at index p.
 */
class ExtractBitFromInteger
{
    static void Main()
    {

        Console.WriteLine("Enter a number: ");
        int number = int.Parse(Console.ReadLine());

        Console.WriteLine("Enter a index: ");
        int index = int.Parse(Console.ReadLine());

        if ((number & (1 << index)) == 0)
        {
            Console.WriteLine("false");

        }
        else
        {
            Console.WriteLine("true");
        }
    }
}
